package ${packageName}.entity;

import java.io.Serializable;
import lombok.Data;
import java.util.*;
import java.math.*;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.annotation.Id;


/**
*  ${classInfo.classComment}
* @author ${authorName} ${.now?string('yyyy-MM-dd')}
*/
@Data
@Document(collection = "${classInfo.tableName}")
public class ${classInfo.className} implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
<#if classInfo.fieldList?exists && classInfo.fieldList?size gt 0>
<#list classInfo.fieldList as fieldItem >

    <#if fieldItem_index ==0>
    /**
    * ${fieldItem.fieldComment}
    */
    private String ${fieldItem.fieldName};
    <#else>
    /**
    * ${fieldItem.fieldComment}
    */
    private ${fieldItem.fieldClass} ${fieldItem.fieldName};
    </#if>
</#list>
    public ${classInfo.className}() {

    }
</#if>

}